package us.kg.kotoriforest.iocxml.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 员工实体类
 *
 * @author Kotori rotroutine@163.com
 * @since 2024/12/20
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Employee {
    private Integer eid;
    private String name;
    private Integer age;
    private String[] hobbies;
    private Department department;

    public void work() {
        System.out.printf("{%s}的{%d}岁的{%s}员工正在工作", department.getName(), age, name);
    }
}
